package com.srcptit.tranning.toannt.btvn1;
import java.util.Scanner;
public class Kiemtra_songto {
 public static boolean test(int n){
	if(n<2) return false;
	int k;
	for(int i=2;i<=n;i++){
		k=n%i;
		if(k==0)
			
		return false;
		
	}
	return true;
}
public static void main(String[]args){
	int n;
	Scanner sc=new Scanner(System.in);
	System.out.println("nhap vao 1 so: ");
	n=sc.nextInt();
	if(test(n)==true)
		System.out.println("so la so nguyen to");
	else
		System.out.println("so vua nhap khong phai la so nguyen to");
}
}
